package com.shopping.service;

import com.shopping.bean.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ICommentService {

    Map<String, Object> listByProductId(int productid, int page, int limit, Integer type);
    boolean addComment(Comment comment);

    List<Comment> listByUserId(int userid);

    int deleteComment(Integer commentid);
}